
<?php $this->load->view('common/header');?>
<body class="padding_top">
<!-- head [[-->
<div class="head_box">
	<div class="bank_nav">
        <a href="<?php echo site_url('member/index');?>"><i class="ico"></i></a>
    </div>
    <div class="head_title">订单管理</div>
</div>
<!--]] head -->
<!-- order [[-->
<div class="user_order">
    <ul>
        <?php if($orders){ ?>
        <?php foreach ($orders as $key => $val) {?>
        <li>
        	<div class="order_title">
            	<span class="f_l">订单号：<?php echo $val['order_no'];?></span>
                <span class="f_r"><?php echo date("Y-m-d H:i:s",$val['order_add_time']);?></span>
            </div>
            <?php foreach ($val['tmp_list'] as $key2 => $val2) {?>
                <div class="product_info">
                    <span class="f_l">
                        <p>名称：【<?php echo $val2['category_name'];?>】<?php echo $val2['good_title'];?></p>
                        <p>规格：<?php echo $val2['good_memo'];?></p>
                    </span>
                    <span class="f_r">
                        <p>单价：<?php echo $val2['per_good_price'];?></p>
                        <p>下单数量：<?php echo $val2['good_mum'];?>个</p>
                    </span>
                    <span class="f_r">
                        <p>料号：<?php echo $val2['good_part_number'];?></p>
                    </span>
                </div>
            <?php } ?>
            <div class="product_note">
                <span class="f_l">
                	备注：<?php echo $val['remark'];?>
                </span>
                <span class="f_r">
                	<p>开票：<?php if($val['is_kaipiao'] == 1){ ?>是<?php }else{?>否<?php }?></p>
                	<p>送货：<?php if($val['is_songhuo'] == 1){ ?>是<?php }else{?>否<?php }?></p>
                </span>
            </div>
            <div class="product_price">
                <p>总金额：<em>￥<?php echo $val['order_price'];?></em></p>
                <span><?php echo $val['notice'];?></span>
            </div>
            <div class="operate_nav">
                <?php if($val['order_status'] == 1){ ?>
                    <a href="javascript:;" class="sure">待送货</a>
                <?php }?>
                <?php if($val['order_status'] == 2){ ?>
                    <a href="javascript:;" class="sure">待收货</a>
                <?php }?>
                <?php if($val['order_status'] == 3){ ?>
                    <a href="javascript:;" class="sure">已完成</a>
                <?php }?>

            </div>
        </li>
        <?php } ?>
        <?php } ?>
    </ul>
</div>
<!--]] order -->
</body>
</html>
